<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\api\service\PollingService;

class Polling extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];

    /**
     * 过期优惠劵
     *
     */
    public function expire_coupon()
    {
        $res = PollingService::expireCoupon();
        return json($res);
    }

    /**
     * 过期订单
     *
     */
    public function expire_order()
    {
        $res = PollingService::expireOrder();
        return json($res);
    }

}